// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

import axios from 'axios'
import VueAxios from 'vue-axios'


import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

Vue.use(ElementUI);


import layer from 'vue-layer'
Vue.prototype.$layer = layer(Vue);

import '../static/js1/jquery-2.1.1.min'
import '../static/Edit/themes/default/css/ueditor.css'
import '../static/Edit/ueditor.config.js'
import '../static/Edit/ueditor.all.js'
import '../static/Edit/ueditor.parse.js'

import '../static/Edit/lang/zh-cn/zh-cn.js'
// import '../static/Edit/dialogs/link/link.js'
// import test  from '../static/js/test.js'


import  base  from './function.js'

Vue.use(base);


Vue.use(VueAxios, axios)
Vue.config.productionTip = false


// Vue.config.debug = true;

new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})

Vue.prototype.changeData = function (){//changeData是函数名
    alert('执行成功');
}